package com.pj.fragment;


import android.os.Bundle;
import android.webkit.WebView;


import androidx.appcompat.app.AppCompatActivity;

public class WebActivity extends AppCompatActivity {

    private WebView webView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_web);
        initView();
        String url = getIntent().getStringExtra("url");
        webView.loadUrl(url);
    }
    private void initView() {
        webView = (WebView) findViewById(R.id.web_view);
    }
}